<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<div class="ch-container">
		<div class="row">
			<div class="box col-md-12">
        <div class="box-inner">
            <div class="box-header well" data-original-title="">
                <h2><i class="glyphicon glyphicon-edit"></i> 查询条件</h2>

                <div class="box-icon">
                    <a href="javascript:;" class="btn btn-setting btn-round btn-default"><i
                            class="glyphicon glyphicon-cog"></i></a>
                    <a href="javascript:;" class="btn btn-minimize btn-round btn-default"><i
                            class="glyphicon glyphicon-chevron-up"></i></a>
                    <a href="javascript:;" class="btn btn-close btn-round btn-default"><i
                            class="glyphicon glyphicon-remove"></i></a>
                </div>
            </div>
            <div class="box-content">
                <form class="form-inline">
                    <div class="form-group col-md-3">
                        <label>产品名称：</label>
                        <input id="name" type="text" class="form-control">
                    </div>
                    <div class="form-group col-md-3">
                        <label>所属景区/项目：</label>
                        <input id="name" type="text" class="form-control">
                        <a href="javascript:;" class="btn btn-default" onclick="selectScene();">选择</a>
                    </div>
                    <div class="clearfix"></div><br>
                    <div class="form-group col-md-4">
                        <label>有效时间：</label>
                        <input name="open_time" type="text" onClick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})" class="form-control"/>
                        <label> - </label>
                        <input name="open_time" type="text" onClick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})" class="form-control"/>
                    </div>
                    <div class="form-group col-md-3">
                    	<a href="javascript:;" class="btn btn-default" onclick="query();">查询</a>
                    </div>
                    <div class="clearfix"></div><br>
                </form>

            </div>
        </div>
    </div>
    <!--/span-->
		</div>
		<div class="row">
			<div class="box col-md-12">
    			<div class="box-inner">
    				<div class="box-header well" data-original-title="">
        				<h2><i class="glyphicon glyphicon-user"></i> 票品列表</h2>

        				<div class="box-icon">
				            <a href="#" class="btn btn-setting btn-round btn-default"><i class="glyphicon glyphicon-cog"></i></a>
				            <a href="#" class="btn btn-minimize btn-round btn-default"><i
				                    class="glyphicon glyphicon-chevron-up"></i></a>
				            <a href="#" class="btn btn-close btn-round btn-default"><i class="glyphicon glyphicon-remove"></i></a>
				        </div>
    				</div>
    				<div class="box-content" id="shelf-ticket-table">
				    	<table class="table table-striped table-bordered bootstrap-datatable responsive">
						    <thead>
						    <tr>
						    	<th></th>
						        <th>票品名称</th>
						        <th>所属景区</th>
						        <th>进价</th>
						        <th>市场价</th>
						        <th>库存数量</th>
						        <th>有效时间</th>
						    </tr>
						    </thead>
						    <tbody>
						    	<c:forEach items="${tickets }" var="ticket">
									<tr>
										<td><input type="checkbox" name="ticket_id" value="${ticket.ticket_info_id }"></td>
									    <td>${ticket.name }</td>
									    <td class="center">${ticket.scene_name }</td>
									    <td class="center">${ticket.buyin_price }</td>
									    <td class="center">${ticket.list_price }</td>
									    <td class="center">${ticket.inventory }</td>
									    <td class="center">${ticket.from_time }-${ticket.end_time }</td>
									</tr>
								</c:forEach>
						    </tbody>
						</table>
		    			<a href="#" class="btn btn-default" onclick="shelfTicketConfirm();">确定并返回</a>
				    </div>
    			</div>
    		</div>
    <!--/span-->
		</div>
	</div>
